//
//  NeoNuiTtsManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/10/25.
//

#import "NeoNuiTtsManager.h"

@implementation NeoNuiTtsManager

+ (instancetype)sharedManager {
    static NeoNuiTtsManager *sharedInstance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        sharedInstance = [[self alloc] init];
        sharedInstance.nui = [NeoNuiTts get_instance]; // 初始化
    });
    return sharedInstance;
}

// 释放nui的逻辑
- (void)releaseNui {
    if (self.nui) {
        [self.nui nui_tts_release];
        self.nui = nil;
    }
}

@end
